package com.hjq.fcloud.bean;

import java.io.Serializable;

public class FncItemBean implements Serializable {
    private String id;//需求序号
    private String code;//需求编号
    private String sect_name;//标段名称
    private String build_corp_name;//施工单位
    private int task_count;//待办任务数
    private String fnc_type;//需求类型：1材料2人工3机械4专业分包

    public String getFnc_type() {
        return fnc_type == null ? "" : fnc_type;
    }

    public void setFnc_type(String fnc_type) {
        this.fnc_type = fnc_type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSect_name() {
        return sect_name;
    }

    public void setSect_name(String sect_name) {
        this.sect_name = sect_name;
    }

    public String getBuild_corp_name() {
        return build_corp_name;
    }

    public void setBuild_corp_name(String build_corp_name) {
        this.build_corp_name = build_corp_name;
    }

    public int getTask_count() {
        return task_count;
    }

    public void setTask_count(int task_count) {
        this.task_count = task_count;
    }

    /**
     * 需求类型名称获取：1材料2人工3机械4专业分包
     */
    public String getFncTypeName() {
        if (getFnc_type().equals("1")) {
            return "材料";
        } else if (getFnc_type().equals("2")) {
            return "人工";
        } else if (getFnc_type().equals("3")) {
            return "机械";
        } else if (getFnc_type().equals("4")) {
            return "专业分包";
        }
        return "";
    }
}
